/*
 * Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package rundeck.quartzjobs

import com.dtolabs.rundeck.core.execution.workflow.ControlBehavior
import com.dtolabs.rundeck.core.execution.workflow.WorkflowExecutionResult
import com.dtolabs.rundeck.core.execution.workflow.steps.StepExecutionResult

/**
 * Created by greg on 2/9/15.
 */
class TestWFEResult implements WorkflowExecutionResult {

    List<StepExecutionResult> resultSet
    Map<String, Collection<StepExecutionResult>> nodeFailures
    Map<Integer, StepExecutionResult> stepFailures
    Exception exception
    boolean success
    String statusString
    ControlBehavior controlBehavior


    @Override
    public List<StepExecutionResult> getResultSet() {
        return resultSet;
    }

    @Override
    public Map<String, Collection<StepExecutionResult>> getNodeFailures() {
        return nodeFailures;
    }

    @Override
    public Map<Integer, StepExecutionResult> getStepFailures() {
        return stepFailures;
    }

    @Override
    public Exception getException() {
        return exception;
    }

    @Override
    public boolean isSuccess() {
        return success;
    }


}
